//
//  RW_SetupViewController.m
//  Yule
//
//  Created by 王亮 on 2021/1/22.
//  Copyright © 2021 Yule.dating. All rights reserved.
//

#import "RW_SetupViewController.h"
#import "RW_SetupView.h"

@interface RW_SetupViewController ()

@property (nonatomic,strong) RW_SetupView *wlclass_view;
@property (nonatomic,strong) RW_SetupViewModel *wlclass_view_model;
@end

@implementation RW_SetupViewController
+(void)pushSetupFromVc:(UIViewController *)vc{
    RW_SetupViewController *showVc = [[RW_SetupViewController alloc]init];
    [vc.navigationController pushViewController:showVc animated:YES];
}


- (void)initView{
    [self.contentView addSubview:self.wlclass_view];
    [self.wlclass_view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.insets(UIEdgeInsetsZero);
    }];
}

-(void)initData{
    [self.wlclass_view initData];
}

#pragma mark - BBBaseViewControllerDataSource
-(NSString *)set_title{
    return self.wlclass_view_model.nav_title;
}
#pragma mark --代理


#pragma mark --懒加载
-(RW_SetupView *)wlclass_view{
    if (!_wlclass_view){
        _wlclass_view = [[RW_SetupView alloc]init];
        _wlclass_view.viewModel = self.wlclass_view_model;
    }
    return _wlclass_view;
}
-(RW_SetupViewModel *)wlclass_view_model{
    if (!_wlclass_view_model){
        _wlclass_view_model = [[RW_SetupViewModel alloc]init];
    }
    return _wlclass_view_model;
}

@end
